<div class="row">
	<div class="col-md-6">
		<table class="table table-hover">
			<thead>
				<tr>
					<th></th>
					<th>链接名称</th>
					<th>状态</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
			{{range .nodedata1}}
				<tr class="success">
					<th><span class="glyphicon glyphicon-plus" id="{{.Id}}" onclick='openmenu("{{.Id}}")'></span></th>
					<th>{{.Title}}</th>
					<th>{{if eq .Status 2}} 启用
						{{else}} 禁用 {{end}}
					</th>
					<th>
					{{if .IsUse}}
						<a class="btn btn-sm btn-warning a_post" 
						href='{{urlfor "Admin.UserController.DelRoleNode" "roleid" $.roleinfo.Id "nodeid" .Id}}' >移除</a>
					{{else}}
						<a href='{{urlfor "Admin.UserController.AddRoleNode" "roleid" $.roleinfo.Id "nodeid" .Id}}' 
						class="btn btn-sm btn-primary a_post">添加</a>
					{{end}}
					</th>
				</tr>
				{{range .children}}
				<tr tag='{{.Pid}}' style="display: none;" >
					<th></th>
					<th>&emsp;{{.Title}}</th>
					<th>{{if eq .Status 2}} 启用
						{{else}} 禁用 {{end}}</th>
					<th>
					{{if .IsUse}}
						<a class="btn btn-sm btn-warning a_post" 
						href='{{urlfor "Admin.UserController.DelRoleNode" "roleid" $.roleinfo.Id "nodeid" .Id}}' >移除</a>
					{{else}}
						<a href='{{urlfor "Admin.UserController.AddRoleNode" "roleid" $.roleinfo.Id "nodeid" .Id}}' 
						class="btn btn-sm btn-primary a_post">添加</a>
					{{end}}
					</th>
				</tr>
				{{end}}
			{{end}}
			</tbody>
		</table>
	</div>
	<div class="col-md-6">
		<table class="table table-hover">
			<thead>
				<tr>
					<th></th>
					<th>菜单名称</th>
					<th>状态</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
			{{range .nodedata2}}
				<tr class="success">
					<th><span class="glyphicon glyphicon-plus" id="{{.Id}}" onclick='openmenu("{{.Id}}")'></span></th>
					<th>{{.Title}}</th>
					<th>{{if eq .Status 2}} 启用
						{{else}} 禁用 {{end}}
					</th>
					<th>
					{{if .IsUse}}
						<a class="btn btn-sm btn-warning a_post" 
						href='{{urlfor "Admin.UserController.DelRoleNode" "roleid" $.roleinfo.Id "nodeid" .Id}}' >移除</a>
					{{else}}
						<a href='{{urlfor "Admin.UserController.AddRoleNode" "roleid" $.roleinfo.Id "nodeid" .Id}}' 
						class="btn btn-sm btn-primary a_post">添加</a>
					{{end}}
					</th>
				</tr>
				{{range .children}}
				<tr tag='{{.Pid}}' style="display: none;" >
					<th></th>
					<th>&emsp;{{.Title}}</th>
					<th>{{if eq .Status 2}} 启用
						{{else}} 禁用 {{end}}</th>
					<th>
					{{if .IsUse}}
						<a class="btn btn-sm btn-warning a_post" 
						href='{{urlfor "Admin.UserController.DelRoleNode" "roleid" $.roleinfo.Id "nodeid" .Id}}' >移除</a>
					{{else}}
						<a href='{{urlfor "Admin.UserController.AddRoleNode" "roleid" $.roleinfo.Id "nodeid" .Id}}' 
						class="btn btn-sm btn-primary a_post">添加</a>
					{{end}}
					</th>
				</tr>
				{{end}}
			{{end}}
			</tbody>
		</table>
	</div>
</div>